package com.campus_information_portal.entity;


import com.campus_information_portal.util.DateJsonType;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.util.Arrays;
import java.util.Date;

/**
 * @author Y-Rainson
 * @create 2018-03-31 23:06
 **/


public class Student {
    private int stuInfoId;
    private int stuApplyId;
    private int cet46Id;
    private Integer academyId;
    private int stuNum;
    private String stuName;
    private int stuSex;
    private String stuIdcardNum;
    @JsonSerialize(using = DateJsonType.class)
    private Date stuBirthday;
    private String stuNation;
    private Integer stuPoli;
    private Integer stuPhone;
    private String stuNativeplace;
    private String stuPassword;
    private int stuGrade;


    public int getStuInfoId() {
        return stuInfoId;
    }

    public void setStuInfoId(int stuInfoId) {
        this.stuInfoId = stuInfoId;
    }


    public int getStuApplyId() {
        return stuApplyId;
    }

    public void setStuApplyId(int stuApplyId) {
        this.stuApplyId = stuApplyId;
    }


    public int getCet46Id() {
        return cet46Id;
    }

    public void setCet46Id(int cet46Id) {
        this.cet46Id = cet46Id;
    }


    public Integer getAcademyId() {
        return academyId;
    }

    public void setAcademyId(Integer academyId) {
        this.academyId = academyId;
    }


    public int getStuNum() {
        return stuNum;
    }

    public void setStuNum(int stuNum) {
        this.stuNum = stuNum;
    }


    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }


    public int getStuSex() {
        return stuSex;
    }

    public void setStuSex(int stuSex) {
        this.stuSex = stuSex;
    }

    public String getStuIdcardNum() {
        return stuIdcardNum;
    }

    public void setStuIdcardNum(String stuIdcardNum) {
        this.stuIdcardNum = stuIdcardNum;
    }


    public Date getStuBirthday() {
        return stuBirthday;
    }

    public void setStuBirthday(Date stuBirthday) {
        this.stuBirthday = stuBirthday;
    }


    public String getStuNation() {
        return stuNation;
    }

    public void setStuNation(String stuNation) {
        this.stuNation = stuNation;
    }


    public Integer getStuPoli() {
        return stuPoli;
    }

    public void setStuPoli(Integer stuPoli) {
        this.stuPoli = stuPoli;
    }


    public Integer getStuPhone() {
        return stuPhone;
    }

    public void setStuPhone(Integer stuPhone) {
        this.stuPhone = stuPhone;
    }


    public String getStuNativeplace() {
        return stuNativeplace;
    }

    public void setStuNativeplace(String stuNativeplace) {
        this.stuNativeplace = stuNativeplace;
    }


    public String getStuPassword() {
        return stuPassword;
    }

    public void setStuPassword(String stuPassword) {
        this.stuPassword = stuPassword;
    }

    public int getStuGrade() {
        return stuGrade;
    }

    public void setStuGrade(int stuGrade) {
        this.stuGrade = stuGrade;
    }

    @Override
    public String toString() {
        return "Student{" +
                "stuInfoId=" + stuInfoId +
                ", stuApplyId=" + stuApplyId +
                ", cet46Id=" + cet46Id +
                ", academyId=" + academyId +
                ", stuNum=" + stuNum +
                ", stuName='" + stuName + '\'' +
                ", stuSex=" + stuSex +
                ", stuIdcardNum='" + stuIdcardNum + '\'' +
                ", stuBirthday=" + stuBirthday +
                ", stuNation='" + stuNation + '\'' +
                ", stuPoli='" + stuPoli + '\'' +
                ", stuPhone=" + stuPhone +
                ", stuNativeplace='" + stuNativeplace + '\'' +
                ", stuPassword='" + stuPassword + '\'' +
                ", stuGrade=" + stuGrade +
                '}';
    }
}
